export const login = ({user, token}) => ({
    type: 'USER_LOGIN',
    user,
    token
});

export const setUser = ({user}) => ({
    type: 'SET_USER',
    user
});

export const logout = () => ({
    type: 'USER_LOGOUT'
});
